package com.exposit.zbs.utils;

import com.exposit.zbs.model.GrantApplication;
import com.exposit.zbs.model.Like;


/**
 * This class defines JSP Tags, used in project
 * Created by Andrey on 15.08.2014.
 */
public final class FunctionsTagUtil {

	/**
	 * This function used by check is likes user this project.
	 *
	 * @param grantApplication Grant Application model entity.
	 * @param login            Login of current user
	 * @return if user like this project, returns Like model entity, else returns null.
	 */
	public static Like isUserLikeByLogin(GrantApplication grantApplication, String login) {

		return grantApplication.isLikedByLogin(login);
	}
}
